<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="jobs">

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="x" page-height="8.5in" page-width="11in"
								margin-top="0.5in" margin-bottom="0.5in" margin-left="1in" margin-right="1in">
			<fo:region-before extent="1in" />
			<fo:region-body margin-top="0.5in" />
			<fo:region-after extent=".75in" />
		</fo:simple-page-master>
	</fo:layout-master-set>

	<fo:page-sequence master-reference="x">
		<fo:static-content flow-name="xsl-region-before">
			<fo:block font-size="18pt" font-family="sans-serif" line-height="24pt" 
						space-after.optimum="15pt" text-align="center" padding-top="3pt" color="rgb(238,124,107)">
				Jobs List
			</fo:block>
		</fo:static-content>

		<fo:static-content flow-name="xsl-region-after">
			<fo:block font-size="18pt" font-family="sans-serif" line-height="24pt" space-after.optimum="15pt"
						text-align="center" padding-top="3pt">
			</fo:block>
		</fo:static-content>

		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<fo:table border-collapse="separate" table-layout="fixed">
					<fo:table-column column-width="3cm"/>
					<fo:table-column column-width="3cm"/>
					<fo:table-column column-width="2cm"/>
					<fo:table-column column-width="3cm"/>
                                        <fo:table-column column-width="4cm"/>
                                        <fo:table-column column-width="2cm"/>
                                        <fo:table-column column-width="3cm"/>
                                        <fo:table-column column-width="5cm"/>

					<fo:table-body>
                                            <fo:table-row background-color="cyan">
					        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Name</fo:block>
	    					</fo:table-cell>
	    					<fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Career</fo:block>
	    					</fo:table-cell>
	    					<fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Work Place</fo:block>
	    					</fo:table-cell>
	    					<fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Salary Offer</fo:block>
	    					</fo:table-cell>
                                                <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Benefit</fo:block>
	    					</fo:table-cell>
                                                <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Quantity</fo:block>
	    					</fo:table-cell>
                                                <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Work Position</fo:block>
	    					</fo:table-cell>
                                                <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="white">Profile Requirement</fo:block>
	    					</fo:table-cell>
						</fo:table-row>
                                            <xsl:for-each select="job">
						<fo:table-row>
							<fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center" color="red">
                                                            <xsl:value-of select="jobName"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center">
                                                            <xsl:value-of select="career"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center">
                                                            <xsl:value-of select="city"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center">
                                                            <xsl:value-of select="salaryOffer"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="left">
                                                            <xsl:value-of select="jobBenefit"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center">
                                                            <xsl:value-of select="jobLimit"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="center">
                                                            <xsl:value-of select="neededPos"/>
                                                        </fo:block>
                                                        </fo:table-cell>
                                                        <fo:table-cell border-color="black" border-width="0.5pt" border-style="solid">
	      						<fo:block text-align="left">
                                                            <xsl:value-of select="profileRequire"/>
                                                        </fo:block>
                                                        </fo:table-cell>
						</fo:table-row>
                                                </xsl:for-each>
					</fo:table-body>

				</fo:table>
			</fo:block>
                        <fo:block></fo:block>
                        <fo:block text-align="left" color="rgb(33,21,81)" space-before="0.5cm">(For job detail please visit our website)</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>